<?php

use Muyuxuanpay\threePay\Merchant;
use Muyuxuanpay\threePay\Pay;
use Muyuxuanpay\tool\Mtool;

require_once './vendor/autoload.php';

$filePath = __DIR__ . '/1.png';
$outputPath = __DIR__ . '/2.png';
$res = \Muyuxuanpay\tool\Image::imageToRound($filePath, $outputPath);
echo '<pre>';
print_r($res);
exit;
//测试海科进件
//$config = [
//    'agent_no'=>'11010200097',
//    'merch_no'=>'88888888',
//    'accessid'=>'cpostest',
//    'accesskey'=>'48e70b51cab84019a2dddf2f03f13a38',
//    'urlKey'=>'F36116F51B262562B0F0D537A2463485',
//];
//$obj = Merchant::getIncomingManager($config,'hk');
//
////$filePath = __DIR__ . '/45853.png';
////echo "<pre>";
////print_r($obj->upImage($filePath));
////exit;
//
//$res = $obj->applyFor(order_no:"",merchant_data:[
//    'merch_type'=>"10A",
//    "merch_name"=>"沐雨轩的小店",
//    "merch_short_name"=>"沐雨轩店",
//    "shop_name"=>"蜀西南一路沐雨书店",
//    "merchant_cert_type"=>"0",
//    "bus_license_no"=>"865263535353A4843",
//    "bus_license_start"=>"2024-03-15",
//    "bus_license_end"=>"9999-12-31",
//    "bus_province_code"=>"510000",
//    "bus_city_code"=>"510100",
//    "bus_area_code"=>"510106",
//    "bus_address"=>"蜀西南一路198号",
//    "province_code"=>"510000",
//    "city_code"=>"510100",
//    "area_code"=>"510106",
//    "address"=>"蜀西南一路198号",
//    "legal_name"=>"毛文科",
//    "legal_cert_type"=>"1",
//    "legal_cert_no"=>"51392219850506199X",
//    "legal_cert_start"=>"2022-10-31",
//    "legal_cert_end"=>"2042-10-31",
//    "contact_name"=>"毛文科",
//    "contact_phone"=>"18227948197",
//    "contact_email"=>"18227948197@163.com",
//    "service_phone"=>"18227948197",
//    "bus_scope_code"=>"00020006",
//],
//    ban_data:[
//    'acc_no'=>'6230582000069557315',
//        'acc_type'=>'10B',
//        'acc_name'=>'毛文科',
//        'idcard_no'=>'51392219850506199X',
//        'phone'=>'18227948197',
//        'bank_code'=>'307651006339',
//        'bank_name'=>'平安银行成都锦江支行',
//        'bank_province_code'=>'510000',
//        'bank_city_code'=>'510100',
//],
//    image_data:[
//        "A1"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A2"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A3"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A5"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A6"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A4"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A28"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A9999"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A7"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A8"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A9"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A31"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A32"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A34"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A35"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A36"=>"a200daffa11b4015a3cbce5af79c0568",
//        "A9998"=>"a200daffa11b4015a3cbce5af79c0568",
//    ],
//    product_data:[
//        "wx"=>[
//            'channel_no'=>'749952311',
//            'rate'=>'80'
//        ],
//        'ali'=>[
//            'channel_no'=>'2088960381285392',
//            'rate'=>'80'
//        ],
//        'bank'=>[
//            'bank_debit_rate'=>'165',
//            'bank_debit_max'=>'2000',
//            'bank_credit_rate'=>'65',
//            'union_debit_rate'=>'65',
//            'union_debit_max'=>'2000',
//            'union_credit_rate'=>'65',
//            'union_mix_rate'=>'65',
//        ]
//    ],
//    settle_data:[
//        'settlement_cycle'=>'D1',
//        'withdrawal_rate'=>'0.6',
//        'withdrawal_feemin'=>'0.6',
//        'public_withdrawal_rate'=>'0',
//        'public_withdrawal_feemin'=>'0',
//    ],notify_url:"http://www.baidu.com",
//    event:[
//
//    ]
//);
//echo "<pre>";
//print_r($res);
//print_r($obj->getResalut());
//exit;
//结果
//<pre>Array
//(
//    [merch_no] => 833651555210012
//    [return_code] => 10000
//    [sign_url] => https://smlh5.esign.cn/mesign/guide?context=nFFz3mKhfU&flowId=7a3da5a89d7f49a4b781e21363b960ef&organ=false&appId=7438804154&linkSource=1&bizType=1&tsign_source_type=SIGN_LINK_WUKONG&tsign_source_detail=16R2mv%2F27h2Y5CkM9bwhboBKx92glJBGuwhWxi5JIv5gvPSsDOyqKp63Pnp0pTTighISCN2pl45ChaZvI3KMoktlUXE7GAI3x9WrpyBGzowo0BqA2wKS2Ljlw9hhGB0lFgyrI0OQpi6qyAcGHKrjn%2FRMHETaBBDqiKL8PXqM2tOuGOe7rNWRzDxJpzYNR3ANxj4MwKR3uaJsHFpLbWVXRVBFF6t5Kp%2FccPYUISYIZ%2BlBQZ%2BL5HeGwSXtB2gKD07OU
//    [contract_no] => 7a3da5a89d7f49a4b781e21363b960ef
//[sign] => 0789237EF125C4826C7CFFDCDF9816CA
//)
//Array
//(
//    [merch_no] => 833651555210012
//    [return_code] => 10000
//    [sign_url] => https://smlh5.esign.cn/mesign/guide?context=nFFz3mKhfU&flowId=7a3da5a89d7f49a4b781e21363b960ef&organ=false&appId=7438804154&linkSource=1&bizType=1&tsign_source_type=SIGN_LINK_WUKONG&tsign_source_detail=16R2mv%2F27h2Y5CkM9bwhboBKx92glJBGuwhWxi5JIv5gvPSsDOyqKp63Pnp0pTTighISCN2pl45ChaZvI3KMoktlUXE7GAI3x9WrpyBGzowo0BqA2wKS2Ljlw9hhGB0lFgyrI0OQpi6qyAcGHKrjn%2FRMHETaBBDqiKL8PXqM2tOuGOe7rNWRzDxJpzYNR3ANxj4MwKR3uaJsHFpLbWVXRVBFF6t5Kp%2FccPYUISYIZ%2BlBQZ%2BL5HeGwSXtB2gKD07OU
//    [contract_no] => 7a3da5a89d7f49a4b781e21363b960ef
//[sign] => 0789237EF125C4826C7CFFDCDF9816CA
//)

//$res = $obj->incomingStatusQuery('833651555210012');
//echo "<pre>";
//print_r($res);
//print_r($obj->getResalut());
//exit;
//$config = [
//    'app_id'=>'wxac38fa1a1ac652d0',
//    'pay_notify'=>'https://jpdjk.dd88.vip/api/Notify/changJieNotify',
//    'public_key'=>'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq3rG5vlJ/bFt8HGuHuB47Tc7acdNZ4b+4j43SX+ruaftaYpodsgbTkRcMGi9E7NRfF8kJXHF+d2H/1UthPQJX6kuX6SXPVd5N7lCreXjQ9xHjybLanC/00Vad3Iu/q0OaKMv8G4nqp9VP60rKf6NNkN0CRmSDDhlZhEawhNjlWzfoFEJf82HhB87YYmYjAuNiT1yL3lT7rtko/laQfpuLEJ4+xEv98hjTyvG67/EawrzKdmGKtvIcnjvfUKWv7jXMFIFF1mfzfIcsAxOu+G8Uvzic73iTSL6DZ9/nx+hYMUpUV8IKgxFmzLc8AA7cOfk61Be3sL/HVucszZ+UDAR7wIDAQAB',
//    'test_price'=>'1',
//    'merch_no'=>'833652553313248',
//    'pn'=>'XN000112',
//    'private_key'=>'MIIEwAIBADANBgkqhkiG9w0BAQEFAASCBKowggSmAgEAAoIBAQCresbm+Un9sW3wca4e4HjtNztpx01nhv7iPjdJf6u5p+1pimh2yBtORFwwaL0Ts1F8XyQlccX53Yf/VS2E9AlfqS5fpJc9V3k3uUKt5eND3EePJstqcL/TRVp3ci7+rQ5ooy/wbieqn1U/rSsp/o02Q3QJGZIMOGVmERrCE2OVbN+gUQl/zYeEHzthiZiMC42JPXIveVPuu2Sj+VpB+m4sQnj7ES/3yGNPK8brv8RrCvMp2YYq28hyeO99Qpa/uNcwUgUXWZ/N8hywDE674bxS/OJzveJNIvoNn3+fH6FgxSlRXwgqDEWbMtzwADtw5+TrUF7ewv8dW5yzNn5QMBHvAgMBAAECggEBAIqS+GO1Nu710HNLWruHCRIh3Th5H/s2o4lvX7xcmQi6ROhSOmMrCK3yHlHcgleGRKZuOEauL5/hP0K+sb9Merq8fEY8OyAOLV4zr0fajBLN02JCp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R8YPg/mTCFjz9IMuwlrBHPxl+d7jU=',
//    'product_code'=>'1000',
//    'refund_notify'=>'https://jpdjk.dd88.vip/api/Notify/changJieRefundNotify',
//    'withdrawal_notify'=>'https://jpdjk.dd88.vip/api/Notify/changJieWithdrawalNotify',
//];
//$obj = Pay::getPayManager($config,'hk.js');
//$res = $obj->pay('WX',Mtool::getOrderNum(),0.01,'测试','wx297f9cb872b57232',"o2gnM6JvQUgNfuYf4CZHP0nDRTUs");
//echo "<pre>";
//print_r($res);
//exit;
//$res = $obj->preContract(
//    '123456789',
//    '51392219850506199X',
//    '身份证',
//    '毛文科',
//    '18227948197',
//    '987654321458798434658',
//    '',
//    ['card_type'=>101],
//);
//$res = $obj->contractConfirm(
//    '',
//    '202306281451433046540',
//    '123456'
//);
//$res = $obj->quickPay(Mtool::getOrderNum(),'1202306281451538580008246542',0.01);
//$res = $obj->orderQuery("TID16879351443055",null,['create_date'=>date("Y-m-d H:i:s")]);
//$res = $obj->refundOrder(Mtool::getOrderNum(),Mtool::getOrderNum(),0.01,null,['refund_reason'=>'测试退款']);
//$res = $obj->refundQuery('',Mtool::getOrderNum());
//
//echo "<pre>";
//print_r($res);
//exit;
//$config = [
//    'gateways'=>[
//        'aliyun' => [
//            'access_key_id' => 'LTAI5tF4HLg64uRSgQrkAKVh',
//            'access_key_secret' => '0rXp8TynZfChg3xEBYGCUNC0gpMpx4',
//            'sign_name' => '四川数联天下科技',
//        ]
//    ]
//];
//$obj = new MuCms($config);
//$newconfig = $obj->getConfig();
////echo "<pre>";
////print_r($newconfig);
////exit;
//$res = $obj->sendCms('18227948197',[
//    'content'  => '您的验证码为: 9865',
//    'template' => 'SMS_305103625',
//    'data' => [
//        'code' => '9865'
//    ],
//]);
//if(!$res){
//    echo "<pre>";
//    print_r($obj->getMessage());
//    exit;
//}
//echo "<pre>";
//var_dump($res);
//exit;
//$header = [
//    ['field'=>"name",'text'=>"名字","width"=>20,"setARGB"=>"FFFF0000"],
//    ['field'=>"id",'text'=>"ID","width"=>30],
//];
//$data = [
//    [
//        'id'=>1,
//        'name'=>'你好',
//    ],
//    [
//        'id'=>2,
//        'name'=>'你不好',
//    ],
//];
//$res = Excel::export($header,$data);
//$ip = '182.138.139.87';
//$res = Position::getPositionThree($ip);
//
//echo "<pre>";
//print_r($res);
//exit;
//$obj = new ExpressDelivery('1812009','f6857022-020f-4bca-8a4a-f2fdde4d7691');
////$res = $obj->query("SF","SF1449801169004",'1608');
////$res = $obj->SubscriptionTrajectory("SF","SF1449801169004",'1608');
//$res = $obj->queryMap("SF","SF1449801169004",'1608','',[],[],[
//    'IsReturnRouteMap'=>true
//]);
//echo "<pre>";
//var_dump("2022-02-28");
//exit;
//list($start,$end) = MuTime::getYesterDay();
//echo "<pre>";
//print_r($start."|".$end);
//exit;
//$obj = MuPay::OfficialAlipay([
//    'charset'=>'utf-8',//请求使用的编码格式，如utf-8,gbk,gb2312等
//    'format'=>"JSON",//仅支持JSON
//    'sign_type'=>"RSA",//商户生成签名字符串所使用的签名算法类型，目前支持RSA2和RSA，推荐使用RSA2。RSA2需要PHP版本>=5.4.8下才可使用。
//    "version"=>"1.0",//调用的接口版本，固定为：1.0
//    "appPrivateKey"=>"",//应用私有证书文件内容
//    "appPrivateKeyFile"=>"",//应用私有证书文件地址，不为空时优先使用文件地址
//    "appPublicKey"=>"",//支付宝公有证书文件内容
//    "appPublicKeyFile"=>"",//支付宝公有证书文件地址，不为空时优先使用文件地址
//    "isUseAES"=>false,//是否使用AES加密解密数据
//    'aesKey'=>"",//AES密钥
//    'apiDomain'=>"",//接口网关
//    'appID'=>"",//支付平台分配给开发者的应用ID
//    'usePublicKeyCert'=>"",//是否使用公钥证书模式
//    'alipayCertPath'=>"",//支付宝公钥证书文件路径
//    'alipayRootCertPath'=>"",//支付宝根证书文件路径
//    'merchantCertPath'=>"",//支付宝应用公钥证书文件路径
//]);
//$obj = MuPay::FenFu([]);
//$obj = MuPay::ChangJie([
//    'acq_sp_id'=>'49072491',
//    'product_code'=>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22ffVuaPWaMJl3qLWvGOYkgxsce78jb7X60FULyGaAnEjOF3tEMRjph+KymE7W1lwFqSIwhFMGDrWZ16ECgYEA2z34eZH5MpYhUHSimlw9922idHRZEobOQcDPG/0RYSy+M5XKhnY3VWjtf70NsxuOo1y0757a4SV99ccuH2RJ7a8m+x2oiWyH81LfH1X9l5cSKpbt3PYO6d2WcxgpgqE1ITlHCPJkhDEamibzN3mhMyR7ez3GKK5DUdS6iNuT2KMCgYEAwqyilw8EsZKLyZXmLiMA0QKlR/HDwvwuch1uL9NEg4obmGSVNjQ9Ygi9UJztmhfv2WYbX5VgnShNoRUG13mGHbTXu7SbLmjf9u2v8BSQqB3ZG8L8Cjj69VRbqQEsCNPZ66jY0AAgo9HzXhGgNKHLXW9d0noE6veKcwIytOpdrK8CgYEAwkykhhExOXzF34jOhmCTZlHadLycKAgiiTF4G0TnfyhpFEx/JTVliqMoQFnq5z3X5r2FeQtezcQtYoF4RcfaoPPmZwx8zfXKcoGSTjImQY9YQThra7UBuI9yA2R5fVSjQmOBqdMv89uUyOMWD6cSjsGZUbqIgIsYDFCsVBfNamMCgYALFfGcUIqf4gx7ykF1VyDwxgnLcwUG0X2DmhFwP8OjCfZQU0n78DWeo4jEUmtlXv+Vja75XnRF/smM5rmhA5aTknzGf55moio+0YI3VbR3HlwCrLPVkTEZT1h440wypH3AYbkW/yrcqVQGg1JwLNZ715+sIK6vArGrovBoRQBYmQKBgQC68ripRMMEPIvGN8KLKNv6gzgxt6XLXxJ3pAYxNVHlq6fIdFk8y8OrYP/nrq1Bch+pJ4RnYPKSh4dLHRIIoEZ1ta1BNuykSb/HARUgkoE9PXUAVUIEQur/NS2S/SzIHOniYUavkXp5nhhYBrnMU62xmbXWOhH7o0EYME3m+ONqRQ==',
//]);
//$config = [
//    'app_id'=>'wx4b9c9f8b6ff938b6',
//    'pay_notify'=>'https://jpdjk.dd88.vip/api/Notify/changJieNotify',
//    'public_key'=>'MIIBIjANBgkqhkiG9w0BAQEFAAOCA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I9H9p9BPF5MSHDd/WXMzRMGfVFhiwhjmva5fxv5XRAoGBANHdtiSqhFyH46rmP4A5/FKuYwQIrg9KCtmUsR0ZgeFAYyQN1POE7uGBEhokLIleqSX8H918qqGMnDcMaOnTtgqdKPMczVrqHrMyObWDbe9QqpmLlB6ptB8QdDouNrdA3MUiYcxh9fC2bnAccyVcYIe69kFWpus57geCodK/VZstAoGBAM82apcsHj3NQ4j7oJomP1VOkxM/XI5S491CgoaHwA+F7Ss6vaFk5C35DQEYiIwgNhq8uPvblMXohfjBOju60SfeLvVM2XtEgcw5H9jNGhTZmE6aVSbpp6bvtW+5sTqwnHCDDMsSXxdVLYsnAlz4K11HdpyUrqcpyzUEWCEqHWczAoGBAKF4bMQZTm3DQDAlp4YJF1KmShi4dPPejCqMdRlmnr+owp7i5Y3YIdPvcvYaDwpCgvJu4jWPzdkuTqMsMSx3cAEKmo8zAe2JZMWLR0uZK+SNtDUfZ3+QIr4j8skw9XhZt4MVyRlv5cKnGqG3wgBk6wCDoST0fslNcQ7mO4vjGwKhAoGAGcMWNX1StTRT9S/zo7aloSGHv5jdFQTRN60RNVCjXEq2Ve2TrgExLVYNe9llAKbwkxprlUSTlpd2MJs1dj+fyWkiRXUshNrbmFxxzS6S04zKFtuxQolCQssCr8VSd42Fpadla8n48Jmyc96BuLVSDuLXqFgD7tyPWyQTIOxvg2kCgYAs4WrX8XfKCg0jmx9AxPmcazqtniQ0uCL53h+Gds9j8CEYjBU1oS8QHgykda5uk1D9zIlgBMTqITmsriB1D5uLtNP822s3a4nHJlpE7EV2y4qGeUYaSvGkBYGQ1PRqYatzeEhWzIXFwrE/cXo3Q8SnEdX2kG30BAvJJUgr2OKwyw==',
//    'product_code'=>'1000',
//    'function_code'=>'1000100001',
//    'refund_notify'=>'https://jpdjk.dd88.vip/api/Notify/changJieRefundNotify',
//    'withdrawal_notify'=>'https://jpdjk.dd88.vip/api/Notify/changJieWithdrawalNotify',];
//$obj = new \Muyuxuanpay\threePay\src\cj\protocolPayment\Pay($config);
//$res = $obj->preSigning('1111111111',
//    '51392219850506199X',
//    '身份证',
//    '毛文科',
//    '18227948197',
//    '786143443434',
//    'https://www.baidu.com',
//    []
//);
//$res = $obj->quickPay('1111111','222222222',1,'测试商品',['notify_url'=>'https://www.baidu.com']);
//echo "<pre>";
//print_r($res);
//exit;

//$obj = MuPay::ChangJie([
//    'app_id'=>'wx4b9c9f8b6ff938b6',
//    'pay_notify'=>'https://jpdjk.dd88.vip/api/Notify/changJieNotify',
//    'public_key'=>'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsNU7PbTNvy16IF5sjzMxS3wQo0kvkq3iNmIIbcLnhatlbdeqdTG+P4wnSM+28Eums/izjL2TKdshoPcuvZ18/rGOUprCeeL7VfTtKu/mlS5H+FCXkdG0a0kstvjloqwRcksV2IiAiFttdB85zI4stu4NBMh4oFd5+nO8Jt7JMPI1J/4zd6VGn4bJ6DEcKVfXn+xpZ9fp0LRRREB5AbqJKpSLS7G+cQE1YT9kRHnAvCZcE+WPwwv24lIOiEXcNacz1vuDC4kZf3ahweuHAGlWve00/O9iIzSkB0FazUGLjOf6WcQiugEz1DtL8wKW2OlAwuk8VU3sSuLbDmzLdYG84QIDAQAB',
//    'test_price'=>'1',
//    'merchant_id'=>'900652554220000',
//    'private_key'=>'MIIEpAIBAAKCAQEAqd7ibcz5guyIDbTKpvJQg1Bst+2hiaHjpwjsMmhCbt5SLG5q2PMrwJZY5XHAnBl8Fp2Rj1JdLmxWfWowcbaKkhXzuYA8omgaDqsvcFjgpHZA8wlvu98K2+s1Furq3bQ08DPMxCSiYNxvmtjPi1WI1JJy9GBX3wucORBztJVOWl8AxiGBspkR4hL1f6Rp+NQz9j/14GdkdVRUSdtKSrWolWfXWffurfW+ES4TEldPaQiQkQfI2LwTAxqgSsUhtdRJtjaze6IZVk6Sthy7iHlwvAC2JSDqVPcWsJGd1z1epvjhix7pUWq3Hwz7c7WBsIeH+eIKeMnT3d/Lejjsh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azqtniQ0uCL53h+Gds9j8CEYjBU1oS8QHgykda5uk1D9zIlgBMTqITmsriB1D5uLtNP822s3a4nHJlpE7EV2y4qGeUYaSvGkBYGQ1PRqYatzeEhWzIXFwrE/cXo3Q8SnEdX2kG30BAvJJUgr2OKwyw==',
//    'product_code'=>'1000',
//    'function_code'=>'1000100001',
//    'refund_notify'=>'https://jpdjk.dd88.vip/api/Notify/changJieRefundNotify',
//    'withdrawal_notify'=>'https://jpdjk.dd88.vip/api/Notify/changJieWithdrawalNotify',]);
////$res = $obj->reverseScanPay("cj7641346313435","133708931340564274",0.01,null,"测试支付");
//$res = $obj->reverseQueryOrder("cj7641346313435");
//echo "<pre>";
//print_r($res);
//print_r($obj->getMessage());
//exit;
////if($obj==null){
////    echo "<pre>";
////    print_r('hehe');
////    exit;
////}
//$orderNo = Mtool::getOrderNum();
////$orderNo = '17201431042399910978710237';
//$res = $obj->WecateH5Pay(
//    1,
//    $orderNo,
//    'https://www.baidu.com',
////    'http://kbm2.xin.cnindex/notify/funotifyArray',
//    'xiaochengx.com#/pages/index/index',
//    "您的商品下单成功",
//    '',
//    [
//        'productId'=>'skq0001',
////        'productId'=>'465',
//        'productName'=>'测试',
////        'productName'=>'【INS】春夏潮牌情侣同款简约条纹logo印花翻领短袖衬衫',
//        'fund'=>'1',
////        'fund'=>'590.00',
//        'merAcct'=>'CSSH',
////        'merAcct'=>'1000',
//        'bizType'=>'0',
//        'productNumber'=>'1'
//    ]
//);
//$res = $obj->pay(
//    1,
//    'wxmini',
//    $orderNo,
//    'https://www.baidu.com',
////    'http://kbm2.xin.cnindex/notify/funotifyArray',
//    'xiaochengx.com#/pages/index/index',
//    "您的商品下单成功",
//    '',
//    [
//
//    ]
//);
//$res = $obj->RefundOrderNo('20240606143620f',$orderNo,100,50,'http://www.baidu.com',"测试退款");
//echo "<pre>";
//print_r($res);
//print_r($obj->getMessage());
//exit;
////echo "<pre>";
////var_dump($res);
////print_r($obj->getMessage());
////exit;
//////http://www.sumapay.com/Refund_do
//////$res = $obj->QueryOrderNo('20240606143620f');
////$res = $obj->RefundOrderNo('20240606143620f',$orderNo,'1','http://www.baidu.com',"测试退款");
////echo "<pre>";
//////var_dump($orderNo);
////print_r($res);
////print_r($obj->getMessage());
////exit;
////var_dump($res);
////print_r($obj->getMessage());
//echo "<pre>";
//print_r($obj);
//exit;
//$res = Mtool::priceTonium(2458715,2);
//$res = $obj->QueryOrderNo("17227418602328834927831662");
//$obj->BinUser([],'');
//$res = $obj->QueryDistrict(['city_code'=>"6510"]);
//if(!empty($res)){
//    $ress = $obj->QueryMccTwo($res['onelevelmcc_query'][0]);
//    echo "<pre>";
//    print_r($ress);
//    exit;
//}
//echo "<pre>";
//print_r($res);
//exit;